<div class="btn-group">
    {{#if product_edit}}
        <a data-href="{{ctx}}product/edit/{{id}}"  data-id="{{id}}" class="btn default blue-stripe btn-xs action-edit" data-toggle="tooltip" title="编辑"><i class="icon-pencil mr5"></i></a>
    {{/if}}
    {{#if product_clearing_time}}
        <a href="{{ctx}}product/clearing/{{id}}" class="btn default blue-stripe btn-xs" data-toggle="tooltip" title="结算时间"><i class="icon-speedometer mr5"></i></a>
    {{/if}}
    <a href="{{ctx}}product/accept/{{id}}" class="btn default blue-stripe btn-xs" data-toggle="tooltip" title="承兑银行"><i class="icon-film mr5"></i></a>
    <a href="{{ctx}}product/app/{{id}}" class="btn default blue-stripe btn-xs" data-toggle="tooltip" title="产品展示维护设置"><i class="icon-screen-smartphone mr5"></i></a>
    <a href="{{ctx}}product/detail/{{id}}" class="btn default blue-stripe btn-xs" data-toggle="tooltip" title="产品详情设置"><i class="icon-list mr5"></i></a>
</div>
<div class="btn-group">
    {{#if product_recommended}}
        {{#if recommend}}
            <a  data-pk="{{id}}" href="{{ctx}}product/recommend/{{id}}" data-value="N" title="取消推荐" data-toggle="tooltip" class="btn default blue-stripe btn-xs recommend"><i class="icon-arrow-down mr5"></i></a>
        {{else}}
            <a  data-pk="{{id}}" href="{{ctx}}product/recommend/{{id}}" data-value="Y" id="recommend" title="首页推荐" data-toggle="tooltip" class="btn default blue-stripe btn-xs recommend"><i class="icon-arrow-up mr5"></i></a>
        {{/if}}
    {{/if}}
    {{#if product_intro}}
        <a href="{{ctx}}product/risk_item/{{id}}" class="btn default blue-stripe btn-xs" data-toggle="tooltip" title="产品说明书"><i class="icon-bulb mr5"></i></a>
    {{/if}}

    {{#if readystatus}}
        <a  data-pk="{{id}}" href="{{ctx}}product/setStatus" data-value="1" title="产品上架" data-toggle="tooltip" class="btn default blue-stripe btn-xs onoff"><i class="icon-lock-open mr5"></i></a>
    {{else}}
        <a  data-pk="{{id}}" href="{{ctx}}product/setStatus" data-value="0" title="产品下架" data-toggle="tooltip" class="btn default blue-stripe btn-xs onoff"><i class="icon-lock mr5"></i></a>
    {{/if}}

    {{#if product_fail}}
        <a href="{{ctx}}product/raisedfailure/{{id}}" class="btn default blue-stripe btn-xs action-raisedfailure" data-toggle="tooltip" title="募集失败"><i class="icon-power mr5"></i></a>
    {{/if}}
    {{#if product_remove}}
        <a data-href="{{ctx}}product/delete/{{id}}" data-id="{{id}}" class="btn default red-stripe btn-xs action-delete" data-toggle="tooltip" title="删除项目"><i class="icon-trash mr5"></i></a>
    {{/if}}
</div>
